/**
 * Created by Administrator on 2017/1/7.
 */
export default {
	showfooter(state) {
		state.showfooter = true
	},
	hidefooter(state) {
		state.showfooter = false
	},
	showact(state) {
		state.cur_act = true
	},
	showrank(state) {
		state.cur_rank = true
	},
	showbonus(state) {
		state.cur_bonus = true
	},
	hideact(state) {
		state.cur_act = false
	},
	hiderank(state) {
		state.cur_rank = false
	},
	hidebonus(state) {
		state.cur_bonus = false
	},
	showteaact(state){
		state.tea_act=true
	},
	showtearank(state){
		state.tea_rank=true
	},
	showteascore(state){
		state.tea_score=true
	},
	hideteaact(state){
		state.tea_act=false
	},
	hidetearank(state){
		state.tea_rank=false
	},
	hideteascore(state){
		state.tea_score=false
	},
	//学生积分和排名
	changeStuMsg(state,_json){
		state.stu_jifen=_json.totalInte;
		state.stu_paiming=_json.sort;
	},
	changeTeaMsg(state,_json){
		state.tea_jifen=_json.totalInte;
		state.tea_paiming=_json.sort;
	},
	saveStuMsg(state,_json){
		state.stu_id=_json.stu_id;
		state.stu_name=_json.stu_name;
		state.class_id=_json.class_id;
		state.school_id=_json.school_id;
		state.school_name=_json.school_name;
		state.city_id=_json.city_id;
		state.opendate=_json.opendate;
		state.token=_json.tbkt_token;
		state.tea_id=_json.tea_id;
		state.tea_name=_json.tea_name;
	},
	saveTeaMsg(state,_json){
		console.log(_json)
		state.tea_id=_json.tea_id;
		state.tea_name=_json.tea_name;
		state.class_id=_json.class_id;
		state.school_id=_json.school_id;
		state.school_name=_json.school_name;
		state.city_id=_json.city_id;
		state.token=_json.tbkt_token;
	}
}